                        <div id="leftcontainer">
                            <div id="firstpane" class="menu_list">
<?
if (isset($navs)) {
    foreach ($navs as $group) {
?>
        <h3><a href="#"><?=$group['label']?></a></h3>
        <div class="menu_body" style="padding: 2px; border: none;">
<?
        $items = $group['items'];
        if(isset($items)) {
            foreach($items as $item) {
                $iselected = false;
                if($group['selected'] && $item['selected']) { $iselected = true; }
?>
            <a class="menuitem" href="<?=base_url($group['url']."/".$item['url'])?>" <? if($iselected) echo "class=\"selected\""?> title="<?=$item['label']?>" ><?=$item['label']?></a>        
<?                
            }
        }
?>        
        </div>    
<?
    }    
}
?>
                            </div>
                        </div>